package com.maxd.service.Commodity;


import com.maxd.model.Commodity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface CommodityService {

    Page<Commodity> selectCommodityList(Pageable pageable);

    Commodity selectById(Long id);

    Page<Commodity> selectByUserId(Long userId, Pageable pageable);

    Commodity save(Commodity commodity);

    void saveAll(List<Commodity> list);

    Commodity update(Commodity commodity);

    void deleteById(Long id);

    void deleteByIdList(String ids);

}
